#pragma once

class Task
{
public:
    Task(int &a, int &b) : _a(a), _b(b)
    {
    }

    int GetA() { return _a; }
    int GetB() { return _b; }

    void Execute() { _result = _a + _b; }

    int Result() { return _result; }

    ~Task() {}

private:
    int _a;
    int _b;
    int _result;
};